
<div id="dataArea">
    <form role="form" method="post" action="{:U(ACTION_NAME)}">
        <!-- general form elements -->
        <div class="box-body" style="padding-bottom:0">

            <form role="form" method="post" action="{:U(ACTION_NAME)}">
                <if condition="ACTION_NAME eq 'edit'">
                    <input type="hidden" id="rid" name="rid" value="{$res.rid}">
                </if>

                <div class="col-xs-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="rname">组名</label>
                                <input type="text" placeholder="" id="rname" name="rname" value="{$res.rname}" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="creditslower">积分上限</label>
                                <input type="text" placeholder="" id="creditslower" name="creditslower" value="{$res.creditslower|intval}" class="form-control took-w80">
                            </div>
                            <div class="form-group">
                                <label>评论不需要审核</label>
                                <div class="radio">
                                    <label>
                                        <input type="radio" id="commentStateRadio1" name="comment_state" value="1"
                                        <if condition="$res[comment_state] eq 1">checked="checked"</if>
                                        />
                                        是
                                    </label>

                                    <label>
                                        &nbsp;&nbsp;
                                        <input type="radio" id="commentStateRadio2" name="comment_state" value="0"
                                        <if condition="$res[comment_state] eq 0">checked="checked"</if>
                                        />
                                        否
                                    </label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label>允许发短消息</label>
                                <div class="radio">
                                    <label>
                                        <input type="radio" id="allowSendMessageRadio1" name="allowsendmessage" value="1"
                                        <if condition="$res[allowsendmessage] eq 1">checked="checked"</if>
                                        />
                                        是
                                    </label>

                                    <label>
                                        &nbsp;&nbsp;
                                        <input type="radio" id="allowSendMessageRadio2" name="allowsendmessage" value="0"
                                        <if condition="$res[allowsendmessage] eq 0">checked="checked"</if>
                                        />
                                        否
                                    </label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="title">描述</label>
                                <textarea placeholder="" rows="1" id="title" name="title" class="form-control">{$res.title}</textarea>
                            </div>

                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div>
                <!-- /.col-md -->

            </form>

        </div><!-- /.box-body -->
    </form>
</div>